html,
body {
  height: 100%;
}

/*滚动条--颜色*/
::-webkit-scrollbar-thumb:hover {
  background: #7d7d7d;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-thumb {
  border-radius: 0px;
  background: #999;
}

::-webkit-scrollbar-track {
  border: 1px #d3d3d3 solid;
  box-shadow: 0px 0px 3px #dfdfdf inset;
  border-radius: 0px;
  background: #eee;
}

.clearfix {

  &:before,
  &:after {
    content: '';
    display: block;
  }

  &:after {
    clear: both;
    font-size: 0;
    height: 0;
    visibility: hidden;
  }
}

/*滚动条颜色设置*/
body {
  background-color: #f0f0f0;
}

button,
button:focus {
  outline: none;
}

.main-container {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 4px;
}

.no-padding {
  padding: 0px;
}

h3 {
  padding: 10px 0 10px 30px !important;
}

h4 {
  font-size: 16px;
  padding: 10px 0px !important;
}

.text-left {
  text-align: left;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.ant-popover-content {
  width: 250px;
}

.control-label {
  font-weight: normal;
}

.ant-table table {
  table-layout: fixed;
}

.ant-table .text-overflow {
  overflow: hidden;
  /*white-space: nowrap;*/
  text-overflow: ellipsis;
  max-height: 38px;
}

nz-content.ant-layout-content {
  margin: 20px 10px;
}

/*导航--样式*/
.ant-menu-item {

  &:focus,
  &:active {
    outline: none;
  }
}

.ant-layout {
  height: 100%;
  background: #f5f7f9 !important;
}

.ant-layout-header {
  background: #495060 !important;
  padding: 0 !important;
  line-height: 1 !important;
}

.ant-layout-sider {
  background: #495060 !important;
}

.ant-menu.ant-menu-dark .ant-menu-item.active {
  background-color: #108ee9;
  color: #fff;
}

.ant-menu-dark,
.ant-menu-dark .ant-menu-sub {
  color: rgba(255, 255, 255, 0.67);
  background: #363e4f !important;
}

.ant-breadcrumb {
  padding: 20px 24px 10px;
}

nz-content.ant-layout-content {
  margin: 0 10px 20px;
  padding: 10px;
}

/*table 样式修改*/
.ant-table-thead>tr>th,
.ant-table-tbody>tr>td {
  padding: 0 8px !important;
  height: 44px;
  text-align: center !important;
  border-top: 1px solid #e9eaec;
  border-left: 1px solid #e9eaec;
  word-break: break-all;
}

.ant-table {
  border-radius: 0 !important;
}

.ant-table table {
  border-radius: 0 !important;
  border-right: 1px solid #e9eaec;
  border-bottom: 1px solid #e9eaec;
}

.ant-table-placeholder {
  border: 1px solid #e9e9e9;
  border-top: 0;
}

/*table end*/
.ant-checkbox-wrapper:not(:last-child) {
  // width: 45%;
}

.mgt20 {
  margin-top: 20px;

  .ant-form-item-control-wrapper {
    padding: 0 !important;
  }
}

.mgb20 {
  margin-bottom: 20px;
}

.right-btns {
  text-align: right;
  margin-bottom: 20px;
}

.spanW80 {
  display: inline-block;
  width: 80px;
  text-align: right;
}

.spanW60 {
  display: inline-block;
  width: 60px;
  text-align: right;
}

.spanW80+nz-input,
.spanW80+.ant-select {
  display: inline-block;
  width: calc(~'100% - 84px');
}

.spanW60+nz-input,
.spanW60+.ant-select {
  display: inline-block;
  width: calc(~'100% - 64px');
}

.bank-logo {
  display: block;
  height: 40px;
  margin: 4px auto;
}

/*loading 动画*/
.ant-spin .ant-spin-dot {
  position: absolute;
  top: 45%;
  left: 50%;
  margin: -10px;
}

.ant-spin {
  color: #108ee9;
  vertical-align: middle;
  text-align: center;
  opacity: 0;
  position: absolute;
  transition: -webkit-transform .3s cubic-bezier(.78, .14, .15, .86);
  transition: transform .3s cubic-bezier(.78, .14, .15, .86);
  font-size: 12px;
  display: none;
}

.ant-spin-spinning {
  opacity: 1;
  position: static;
  display: inline-block;
}

.ant-spin-lg .ant-spin-dot {
  width: 32px;
  height: 32px;
}

.ant-spin-dot {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 20px;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
  -webkit-animation: antRotate 1.2s infinite linear;
  animation: antRotate 1.2s infinite linear;
}

.ant-spin-dot i {
  width: 14px;
  height: 14px;
  border-radius: 100%;
  background-color: #108ee9;
  -webkit-transform: scale(.75);
  transform: scale(.75);
  display: block;
  position: absolute;
  opacity: .3;
  -webkit-animation: antSpinMove 1s infinite linear alternate;
  animation: antSpinMove 1s infinite linear alternate;
  -webkit-transform-origin: 50% 50%;
  transform-origin: 50% 50%;
}

.ant-spin-dot i:first-child {
  left: 0;
  top: 0;
}

.ant-spin-dot i:nth-child(2) {
  right: 0;
  top: 0;
  -webkit-animation-delay: .4s;
  animation-delay: .4s;
}

.ant-spin-dot i:nth-child(3) {
  right: 0;
  bottom: 0;
  -webkit-animation-delay: .8s;
  animation-delay: .8s;
}

.ant-spin-dot i:nth-child(4) {
  left: 0;
  bottom: 0;
  -webkit-animation-delay: 1.2s;
  animation-delay: 1.2s;
}

@keyframes antSpinMove {
  to {
    opacity: 1;
  }
}

@keyframes antRotate {
  to {
    transform: rotate(405deg);
  }
}

/*loading 动画结束*/

.markdown blockquote {
  font-size: 12px;
  background: rgba(240, 240, 240, 0.37);
  padding: 10px;
  border-left: 4px solid #108ee9;
  padding-left: 12px;
  margin: 10px 0 30px;
}

.markdown blockquote p {
  margin: 0;
}

.size-tips {
  font-size: 12px;
  float: left;
  margin: 0 10px;
}

/*editor*/
.has-error .ql-toolbar {
  border-bottom-color: red !important;
}

.has-error .ql-container {
  border-color: red !important;
}

/**/
app-login {
  display: block;
  padding-top: 15%;
}

/*overview*/
.pre-view-wrap {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 9998;
  background-color: rgba(80, 80, 80, 0.8);

  .pre-view-content {
    position: absolute;
    z-index: 9999;
    background-color: #fff;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 25px;
    box-shadow: 0 0 8px #ccc;
    animation: view-fade-in 0.5s ease 0s 1 normal running none;

    &:hover .pre-close-btn {
      transform: rotate(180deg);
    }

    .pre-close-btn {
      background-color: rgba(80, 80, 80, 1);
      transition: all 0.5s;
      border: none;
      position: absolute;
      display: block;
      cursor: pointer;
      right: 0px;
      top: 0px;
      width: 30px;
      height: 30px;
      border-radius: 100%;
      text-align: center;
      line-height: 30px;
      font-weight: 600;
      font-size: 12px;

      &:before,
      &:after {
        position: absolute;
        display: block;
        content: '';
        top: 5px;
        width: 3px;
        height: 20px;
        background-color: #ffffff;
        transform: rotate(45deg);
        left: 13px;
        transform-origin: center center;
      }

      &:after {
        transform: rotate(-45deg);
      }
    }

    img {
      width: 100%;
      height: 100%;
      display: block;
      border: 1px solid #ccc;
    }
  }

  .view-fade-out {
    animation: view-fade-out 0.31s ease 0s 1 normal running none;
  }
}

@keyframes view-fade-in {
  from {
    top: 40%;
    opacity: 0;
  }

  to {
    top: 50%;
  }
}

@keyframes view-fade-out {
  from {
    top: 50%;
  }

  to {
    top: 40%;
    opacity: 0;
  }
}

/*charts*/
.chart-wrap {
  height: 300px;
  border: 1px solid #eeeeee;
  margin-bottom: 20px;

  .chart-content {
    height: 100%;
    width: 100%;
  }
}

/*system_log*/
.sys_log_p {
  word-break: break-all;
  border-left: 1px solid #108ee9;
  padding-left: 4px;
  margin-bottom: 4px;
}

.sys_log_p:nth-of-type(2) {
  border-left-color: #f04134;
}

.sys_log_p:nth-of-type(3) {
  border-left-color: #00a854;
}

.sys_log_p:nth-of-type(4) {
  border-left-color: #ffbf00;
}

/*double balls*/
.double-ball {
  color: #fff;
  overflow: hidden;

  .red,
  .blue {
    border-radius: 100%;
    float: left;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 20px;
  }

  .red {
    margin-right: 3px;
    background-color: #ff4c4c;
  }

  .blue {
    background-color: #108ee9;
  }
}

/*dashbord*/
.chart-dash-wrap {
  min-height: 500px;
  border: 1px solid #eeeeee;
  margin-bottom: 20px;

  .chart-content {
    min-height: 500px;
    height: 100%;
    width: 100%;
  }
}


/*ant-popover-inner-content*/
.ant-popover-inner-content {
  div {
    margin-top: 6px;
    padding-bottom: 6px;
    border-bottom: 1px solid #e8e8e8;

    &:last-child {
      border-bottom: none;
    }
  }
}

.ql-snow .ql-picker-label::before {
  vertical-align: top
}